package cn.edu.scau.cmi.dengshixin.factory.simpleFactory;

import cn.edu.scau.cmi.dengshixin.factory.domain.*;

public class SimpleFactory {
	
	public Meat produce(String name) {
		Meat meat = null;
		switch(name) {
		case "猪肉":
			meat = new Pork();
			break;
		case "鸡肉":
			meat = new Chicken();
			break;
		case "牛肉":
			meat = new Beaf();
			break;
		}
		return meat;
	}
	
}
